<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class role_model extends MY_Model {

	protected $table		= "roles";
	protected $key			= "role_id";
	protected $soft_deletes	= true;
	protected $date_format	= "datetime";
	protected $set_created	= false;
	protected $set_modified = false;
	protected $orderby 		= "role_name";

	//---------------------------------------------------------------
	
	function enable_flags($role_id, $data)
	{
		$this->db->where('role_id', $role_id);
		return $this->db->update($this->table, $data);
	}
	
}
